<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="https://unpkg.com/vue@next"></script>
<div id="app">
    <todo-item :data="46"></todo-item>
    <todo-item :data="opt.age"></todo-item>

</div>
<script>
    const vueOpt = {
        data(){
            return {
                opt: {
                    age: 10
                }
            }
        }
    }

    const app = Vue.createApp(vueOpt)

    app.component('todo-item', {
        data(){
            return {

            }
        },
        props: ['data'],
        template: `
            <div>{{data}}</div>
        `
    });

    app.mount('#app');

</script>
</body>
</html>
